From: David Härdeman Date: Thu, 23 Oct 2025 17:04:49 +0000 (+0200) Subject: luci-mod-network: mark the ignore flag as dnsmasq-only X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22http:/www.crowdsec.net/%22/%22https:/collectd.org/%22http:/www.crowdsec.net/%22?a=commitdiff_plain;h=3feda7487c7ec50de52931dd480a648863bbad3a;p=project%2Fluci.git luci-mod-network: mark the ignore flag as dnsmasq-only And also hide the flag if dnsmasq isn't installed. Signed-off-by: David Härdeman --- diff --git a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js index 29fe309828..1a16049170 100644 --- a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js +++ b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js @@ -702,7 +702,10 @@ return view.extend({ ]); }; - ss.taboption('general', form.Flag, 'ignore', _('Ignore interface'), _('Disable DHCP for this interface.')); + if (L.hasSystemFeature('dnsmasq')) { + ss.taboption('general', form.Flag, 'ignore', _('Ignore interface'), + _('Disable DHCP for this interface (dnsmasq only).')); + } if (protoval == 'static') { if (L.hasSystemFeature('odhcpd')) {